#include <iostream>
#include "vectorfunctions.h"
int palindrom(char s[], char x[], int l)
{
	int i;
	for (i=0;i<l;i++)
		if(s[i]!=x[i])
			return 0;
return 1;
}


int main()
{
	int l, m;
	char x[100], s[100];
	cout<<"Number of elements : ";
	cin>>l;
	readcharVector(x, l);
	strcpy(x, s, l);
	mirror(x, l);
	if (palindrom(s, x, l)!=0){
		printcharVector(s, l);
		cout<<"is palindrome\n";
	}
	else {
		printcharVecto(s, l);
		cout<<"is NOT palindrome";
	}
return 0;
}
